import { store } from '@/store';
import { defineStore } from 'pinia'


interface LoginState {
	count: number
}

export const useLoginStore = defineStore({
	id: 'login',
	state: (): LoginState => ({
		count: 0,
	}),
	getters: {
		getCount(): number {
			return this.count
		},
	},
	actions: {
		increment(): void {
			this.count++
		},
	},
})

export function useLoginStateWithOut(){
    return useLoginStore(store)
}